class CarBuilder {
  constructor(name) {
    this.name = name;
  }

  buildPart1(params) {
    this.part1 = params;
    return this;
  }

  buildPart2(params) {
    this.part2 = params;
  }
}

const bentch = new CarBuilder("bentch");
bentch.buildPart1({ color: "red" }).buildPart2({ color: "blue" });

console.log(bentch);
